package com.funmi.lizip.entity.dto.taskDelivery;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.funmi.lizip.utils.ObjectJsonHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author itheima
 */
@Data
@ApiModel(value = "TaskDeliveryAddRequest", description = "任务下发新增")
@TableName(value = "task_delivery",autoResultMap = true)
public class TaskDeliveryAddRequest implements Serializable {


    @ApiModelProperty(value = "任务表id")
    @TableField("task_id")
    private Integer taskId;

    @ApiModelProperty(value = "任务名称")
    @TableField("task_name")
    private String taskName;



    @ApiModelProperty(value = "任务描述")
    @TableField("task_description")
    private String taskDescription;

    @ApiModelProperty(value = "填写内容")
    @TableField("content")
    private String content;


    @ApiModelProperty(value = "任务接收对象	")
    @TableField("accept_user")
    private String acceptUser;

    @ApiModelProperty(value = "任务状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "选项(多个)")
    @TableField(value = "map_options",typeHandler = ObjectJsonHandler.class)
    private JSONObject mapOptions;

    @ApiModelProperty(value = "用户地图配置项")
    @TableField(value = "user_map_options",typeHandler = ObjectJsonHandler.class)
    private JSONObject userMapOptions;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at",select = false)
    private LocalDateTime createAt;

    @ApiModelProperty(value = "接收时间")
    @TableField("accept_at")
    private LocalDateTime acceptAt;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_at")
    private LocalDateTime endAt;

    @ApiModelProperty(value = "结果描述	")
    @TableField("end_description")
    private String endDescription;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",select = false)
    private Boolean isDelete;


}
